/*
 * Flowable REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;

/**
 * HistoricDetailResponse
 */

public class HistoricDetailResponse {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("processInstanceId")
  private String processInstanceId = null;

  @JsonProperty("processInstanceUrl")
  private String processInstanceUrl = null;

  @JsonProperty("executionId")
  private String executionId = null;

  @JsonProperty("activityInstanceId")
  private String activityInstanceId = null;

  @JsonProperty("taskId")
  private String taskId = null;

  @JsonProperty("taskUrl")
  private String taskUrl = null;

  @JsonProperty("time")
  private OffsetDateTime time = null;

  @JsonProperty("detailType")
  private String detailType = null;

  @JsonProperty("revision")
  private Integer revision = null;

  @JsonProperty("variable")
  private RestVariable variable = null;

  @JsonProperty("propertyId")
  private String propertyId = null;

  @JsonProperty("propertyValue")
  private String propertyValue = null;

  public HistoricDetailResponse id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "26", value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public HistoricDetailResponse processInstanceId(String processInstanceId) {
    this.processInstanceId = processInstanceId;
    return this;
  }

   /**
   * Get processInstanceId
   * @return processInstanceId
  **/
  @ApiModelProperty(example = "5", value = "")
  public String getProcessInstanceId() {
    return processInstanceId;
  }

  public void setProcessInstanceId(String processInstanceId) {
    this.processInstanceId = processInstanceId;
  }

  public HistoricDetailResponse processInstanceUrl(String processInstanceUrl) {
    this.processInstanceUrl = processInstanceUrl;
    return this;
  }

   /**
   * Get processInstanceUrl
   * @return processInstanceUrl
  **/
  @ApiModelProperty(example = "http://localhost:8182/history/historic-process-instances/5", value = "")
  public String getProcessInstanceUrl() {
    return processInstanceUrl;
  }

  public void setProcessInstanceUrl(String processInstanceUrl) {
    this.processInstanceUrl = processInstanceUrl;
  }

  public HistoricDetailResponse executionId(String executionId) {
    this.executionId = executionId;
    return this;
  }

   /**
   * Get executionId
   * @return executionId
  **/
  @ApiModelProperty(example = "6", value = "")
  public String getExecutionId() {
    return executionId;
  }

  public void setExecutionId(String executionId) {
    this.executionId = executionId;
  }

  public HistoricDetailResponse activityInstanceId(String activityInstanceId) {
    this.activityInstanceId = activityInstanceId;
    return this;
  }

   /**
   * Get activityInstanceId
   * @return activityInstanceId
  **/
  @ApiModelProperty(example = "10", value = "")
  public String getActivityInstanceId() {
    return activityInstanceId;
  }

  public void setActivityInstanceId(String activityInstanceId) {
    this.activityInstanceId = activityInstanceId;
  }

  public HistoricDetailResponse taskId(String taskId) {
    this.taskId = taskId;
    return this;
  }

   /**
   * Get taskId
   * @return taskId
  **/
  @ApiModelProperty(example = "6", value = "")
  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public HistoricDetailResponse taskUrl(String taskUrl) {
    this.taskUrl = taskUrl;
    return this;
  }

   /**
   * Get taskUrl
   * @return taskUrl
  **/
  @ApiModelProperty(example = "http://localhost:8182/history/historic-task-instances/6", value = "")
  public String getTaskUrl() {
    return taskUrl;
  }

  public void setTaskUrl(String taskUrl) {
    this.taskUrl = taskUrl;
  }

  public HistoricDetailResponse time(OffsetDateTime time) {
    this.time = time;
    return this;
  }

   /**
   * Get time
   * @return time
  **/
  @ApiModelProperty(example = "2013-04-17T10:17:43.902+0000", value = "")
  public OffsetDateTime getTime() {
    return time;
  }

  public void setTime(OffsetDateTime time) {
    this.time = time;
  }

  public HistoricDetailResponse detailType(String detailType) {
    this.detailType = detailType;
    return this;
  }

   /**
   * Get detailType
   * @return detailType
  **/
  @ApiModelProperty(example = "variableUpdate", value = "")
  public String getDetailType() {
    return detailType;
  }

  public void setDetailType(String detailType) {
    this.detailType = detailType;
  }

  public HistoricDetailResponse revision(Integer revision) {
    this.revision = revision;
    return this;
  }

   /**
   * Get revision
   * @return revision
  **/
  @ApiModelProperty(example = "2", value = "")
  public Integer getRevision() {
    return revision;
  }

  public void setRevision(Integer revision) {
    this.revision = revision;
  }

  public HistoricDetailResponse variable(RestVariable variable) {
    this.variable = variable;
    return this;
  }

   /**
   * Get variable
   * @return variable
  **/
  @ApiModelProperty(value = "")
  public RestVariable getVariable() {
    return variable;
  }

  public void setVariable(RestVariable variable) {
    this.variable = variable;
  }

  public HistoricDetailResponse propertyId(String propertyId) {
    this.propertyId = propertyId;
    return this;
  }

   /**
   * Get propertyId
   * @return propertyId
  **/
  @ApiModelProperty(value = "")
  public String getPropertyId() {
    return propertyId;
  }

  public void setPropertyId(String propertyId) {
    this.propertyId = propertyId;
  }

  public HistoricDetailResponse propertyValue(String propertyValue) {
    this.propertyValue = propertyValue;
    return this;
  }

   /**
   * Get propertyValue
   * @return propertyValue
  **/
  @ApiModelProperty(value = "")
  public String getPropertyValue() {
    return propertyValue;
  }

  public void setPropertyValue(String propertyValue) {
    this.propertyValue = propertyValue;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HistoricDetailResponse historicDetailResponse = (HistoricDetailResponse) o;
    return Objects.equals(this.id, historicDetailResponse.id) &&
        Objects.equals(this.processInstanceId, historicDetailResponse.processInstanceId) &&
        Objects.equals(this.processInstanceUrl, historicDetailResponse.processInstanceUrl) &&
        Objects.equals(this.executionId, historicDetailResponse.executionId) &&
        Objects.equals(this.activityInstanceId, historicDetailResponse.activityInstanceId) &&
        Objects.equals(this.taskId, historicDetailResponse.taskId) &&
        Objects.equals(this.taskUrl, historicDetailResponse.taskUrl) &&
        Objects.equals(this.time, historicDetailResponse.time) &&
        Objects.equals(this.detailType, historicDetailResponse.detailType) &&
        Objects.equals(this.revision, historicDetailResponse.revision) &&
        Objects.equals(this.variable, historicDetailResponse.variable) &&
        Objects.equals(this.propertyId, historicDetailResponse.propertyId) &&
        Objects.equals(this.propertyValue, historicDetailResponse.propertyValue);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, processInstanceId, processInstanceUrl, executionId, activityInstanceId, taskId, taskUrl, time, detailType, revision, variable, propertyId, propertyValue);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HistoricDetailResponse {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    processInstanceId: ").append(toIndentedString(processInstanceId)).append("\n");
    sb.append("    processInstanceUrl: ").append(toIndentedString(processInstanceUrl)).append("\n");
    sb.append("    executionId: ").append(toIndentedString(executionId)).append("\n");
    sb.append("    activityInstanceId: ").append(toIndentedString(activityInstanceId)).append("\n");
    sb.append("    taskId: ").append(toIndentedString(taskId)).append("\n");
    sb.append("    taskUrl: ").append(toIndentedString(taskUrl)).append("\n");
    sb.append("    time: ").append(toIndentedString(time)).append("\n");
    sb.append("    detailType: ").append(toIndentedString(detailType)).append("\n");
    sb.append("    revision: ").append(toIndentedString(revision)).append("\n");
    sb.append("    variable: ").append(toIndentedString(variable)).append("\n");
    sb.append("    propertyId: ").append(toIndentedString(propertyId)).append("\n");
    sb.append("    propertyValue: ").append(toIndentedString(propertyValue)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
